package com.competition.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.competition.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper  extends BaseMapper<Product> {

    @Select("SELECT * FROM product WHERE product_lable LIKE #{productLable} ")
    List<Product> getAllByProductLable(@Param("productLable")String productLable);
}
